/**
 * @file test/List.js
 * @author maoquan(maoquan@htsc.com)
 */
import React, { PropTypes, PureComponent } from 'react';
import { Table } from 'antd';

import columns from './columns';
import styles from './list.less';

export default class TestList extends PureComponent {

  static propTypes = {
    list: PropTypes.array.isRequired,
  }

  static defaultProps = {
  }

  render() {
    const { list } = this.props;
    console.log('23---', this.props);
    return (
      <div>
        <Table
          className={styles.table}
          rowKey="id"
          columns={columns}
          dataSource={list}
          /* pagination={false} */
        />
      </div>
    );
  }
}
